import Mock from 'mockjs';

export const provinceStats = [
  { name: '北京', employed: 120, unemployed: 8, rate: 6.3 },
  { name: '上海', employed: 150, unemployed: 10, rate: 6.2 },
  { name: '广东', employed: 300, unemployed: 20, rate: 6.7 },
  { name: '四川', employed: 180, unemployed: 15, rate: 7.7 },
  { name: '江苏', employed: 280, unemployed: 18, rate: 6.4 },
  { name: '浙江', employed: 250, unemployed: 16, rate: 6.4 },
  { name: '山东', employed: 220, unemployed: 17, rate: 7.2 },
  { name: '河南', employed: 200, unemployed: 19, rate: 8.7 },
  { name: '湖北', employed: 190, unemployed: 16, rate: 7.8 },
  { name: '湖南', employed: 170, unemployed: 15, rate: 8.1 },
  { name: '河北', employed: 160, unemployed: 14, rate: 8.0 },
  { name: '福建', employed: 140, unemployed: 9, rate: 6.0 },
  { name: '安徽', employed: 130, unemployed: 11, rate: 7.8 },
  { name: '江西', employed: 120, unemployed: 10, rate: 7.7 },
  { name: '广西', employed: 110, unemployed: 9, rate: 7.6 },
  { name: '海南', employed: 90, unemployed: 6, rate: 6.2 },
  { name: '重庆', employed: 100, unemployed: 8, rate: 7.4 },
  { name: '贵州', employed: 95, unemployed: 8, rate: 7.8 },
  { name: '云南', employed: 105, unemployed: 9, rate: 7.9 },
  { name: '西藏', employed: 80, unemployed: 5, rate: 5.9 },
  { name: '陕西', employed: 115, unemployed: 10, rate: 8.0 },
  { name: '甘肃', employed: 85, unemployed: 7, rate: 7.6 },
  { name: '青海', employed: 75, unemployed: 5, rate: 6.2 },
  { name: '宁夏', employed: 70, unemployed: 5, rate: 6.7 },
  { name: '新疆', employed: 95, unemployed: 7, rate: 6.9 },
  { name: '内蒙古', employed: 100, unemployed: 8, rate: 7.4 },
  { name: '辽宁', employed: 130, unemployed: 12, rate: 8.5 },
  { name: '吉林', employed: 110, unemployed: 10, rate: 8.3 },
  { name: '黑龙江', employed: 120, unemployed: 11, rate: 8.4 },
  { name: '山西', employed: 105, unemployed: 9, rate: 7.9 },
  { name: '天津', employed: 95, unemployed: 7, rate: 6.9 }
];

// 设置延迟时间
Mock.setup({
  timeout: '200-600'
});

// 拦截请求
Mock.mock('/api/provinceStats', 'get', () => {
  return {
    code: 200,
    data: provinceStats,
    message: 'success'
  };
}); 